package com.server.Impl;

import com.dao.db1.AssistMaterialDetailsDao;
import com.server.AssistMaterialDetailsServer;
import com.vo.AssistsVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AssistMaterialDetailsServerImpl implements AssistMaterialDetailsServer {
    private final AssistMaterialDetailsDao assistMaterialDetailsDao;

    @Autowired
    public AssistMaterialDetailsServerImpl(AssistMaterialDetailsDao assistMaterialDetailsDao) {
        this.assistMaterialDetailsDao = assistMaterialDetailsDao;
    }

    @Override
    public List<AssistsVo> selectAssistsAll(String id, String fabh, int limit, int page) {
        List<AssistsVo> assistsVos = assistMaterialDetailsDao.selectAssistsAll(id, fabh, limit, page);
        return assistsVos;
    }

    @Override
    public List<AssistsVo> selectAssists(String id, String fabh, int limit, int page) {
        return assistMaterialDetailsDao.selectAssists(id,fabh,limit,page);
    }
}
